const reader = require('./util/staticReader');

function route(handle, pathname, resp, request, socket) {
	if (typeof handle[pathname] !== 'function') {
		pathname = '/';
	}
	handle[pathname](resp, request, socket);
}

module.exports = route;